package com.wispx.shortlink.admin.configuration;

import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

/**
 * 用户风控配置文件
 */
@Component
@Data
@ConfigurationProperties(prefix = "short-link.flow-limit")
public class UserFlowRiskControlConfiguration {

    /**
     * 是否开启用户风控
     */
    private Boolean enable;

    /**
     * 时间窗口
     */
    private String timeWindow;

    /**
     * 最大放行数
     */
    private Long maxAccessCount;
}
